﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/Admin.Master" AutoEventWireup="true" CodeBehind="level.aspx.cs" Inherits="GameAdmin.Pages.level" %>
<asp:Content ID="Content1" ContentPlaceHolderID="plcHolderContent" runat="server">
    <h2>Level</h2>

    <asp:Label ID="lblMessage" Visible="false" runat="server" />

    <div class="editor longerLabel">
        <fieldset>
            <legend>Editor</legend>

            <asp:Label AssociatedControlID="txtId" Text="ID:" runat="server" /><asp:TextBox ID="txtId" runat="server" /><br />
            <asp:Label AssociatedControlID="txtPlayerX" Text="Výchozí souřadnice X:" runat="server" /><asp:TextBox ID="txtPlayerX" runat="server" />
                <asp:RequiredFieldValidator ID="req1" ControlToValidate="txtPlayerX" ErrorMessage="Nevyplnili jste povinné pole!" Display="Dynamic" runat="server" />
                <br />
            <asp:Label AssociatedControlID="txtPlayerY" Text="Výchozí souřadnice Y:" runat="server" /><asp:TextBox ID="txtPlayerY" runat="server" />
                <asp:RequiredFieldValidator ID="req2" ControlToValidate="txtPlayerY" ErrorMessage="Nevyplnili jste povinné pole!" Display="Dynamic" runat="server" />
                <br />
            <asp:Label AssociatedControlID="txtWidth" Text="Šířka hrací plochy:" runat="server" /><asp:TextBox ID="txtWidth" runat="server" />
                <asp:RequiredFieldValidator ID="req3" ControlToValidate="txtWidth" ErrorMessage="Nevyplnili jste povinné pole!" Display="Dynamic" runat="server" />
                <br />
            <asp:Label AssociatedControlID="txtHeight" Text="Výška hrací plochy:" runat="server" /><asp:TextBox ID="txtHeight" runat="server" />
                <asp:RequiredFieldValidator ID="req4" ControlToValidate="txtHeight" ErrorMessage="Nevyplnili jste povinné pole!" Display="Dynamic" runat="server" />
                <br />
            <asp:Label AssociatedControlID="txtTime" Text="Čas:" runat="server" /><asp:TextBox ID="txtTime" runat="server" />
                <asp:RequiredFieldValidator ID="req5" ControlToValidate="txtTime" ErrorMessage="Nevyplnili jste povinné pole!" Display="Dynamic" runat="server" />
                <br />
        </fieldset>

        <asp:Button ID="btnSave" Text="Uložit" runat="server" /> alebo <asp:Button ID="btnSaveAndDesign" Text="Uložit a přejít na návrh levelu" runat="server" />
    </div>

    <br />
    <asp:HyperLink ID="lnkBack" NavigateUrl="~/levels" Text="Návrat na seznam levelů" runat="server" />
</asp:Content>
